package com.study.forumsystemproject.model;

import lombok.Data;

/**
 * program: forum-system-project
 * <p>
 * description:
 * <p>
 * author: xiaoxie
 * <p>
 * create: 2024-08-23 09:17
 **/
@Data
public class ResultPage {
    private Integer page;
    private Integer pageSize;
    public Integer getOffset() {
        return (page - 1) * pageSize;
    }
}
